/*
 * @Author: liuying 247220246@qq.com
 * @Date: 2024-01-05 17:18:02
 * @LastEditors: liuying 247220246@qq.com
 * @LastEditTime: 2024-01-10 17:17:00
 * @FilePath: \ele-h5-server\src\controller\home_search.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const getHomeSearchData = require("../../data/home_search");
module.exports = (req, res) => {
  const { _label_like } = req.query;
  const allData = getHomeSearchData();
  const list = allData.list.filter((v) => v.label.includes(_label_like));
  setTimeout(() => {
    return res.success({
      list,
    });
  }, 1000);
};
